﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Data;

namespace DbManager.Data
{
    public class MySqlDataProvider :
        DataProvider
    {

        #region Override Properties

        public override string Name
        {
            get { return /*DataProvider.ProviderName.*/"MySql"; }
        }

        public override Type ConnectionType
        {
            get { return typeof(System.Data.SqlClient.SqlConnection); }
        }

        #endregion


        #region Override Methods

        public override IDbConnection CreateConnection()
        {
            // переделать! нужен другой тип соединения
            return new System.Data.OleDb.OleDbConnection();
        }

        #endregion 
    }
}
